Skip to content

fix(plugin-auth)!: accepting, declining and listing an invitation need a verified email address on every deployment - #34883

Merged
objectstack-fleet[bot] merged 17 commits into
mainfrom
claude/sec2-q2gv
Nov 17, 2026
Merged

objectstack-fleet[bot] merged 17 commits into
mainfrom
claude/sec2-q2gv

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Clause-②: no (narrowing)
Metadata-protocol: none
Skills-docs: none — no skill under skills/** teaches accepting an organization invitation or invitation sign-up; content/docs/deployment/self-hosting.mdx gains the rules in this change.

ADR amendment: #34909, lands with this PR.

维护者速读

  • 改了什么:接受、拒绝邀请和列出自己的邀请,在每个部署上都要求会话的邮箱已验证(403,better-auth 自己的码),与邮件能否投递无关;按 id 读取单个邀请(get-invitation)保持开放。invite_only 下凭邀请 id 注册的账号,邮箱验证前不加入组织,验证后接受邀请时按邀请的角色入组。控制台:接受、拒绝被拒,以及凭邀请链接注册后自动接受被拒,都直接转到验证邮件页。
  • 为什么改:邀请 id(邮件链接和复制链接都带)不能证明持有受邀邮箱;按维护者的裁决,规则对所有部署无条件成立。
  • 风险与回滚:BREAKING。没有可投递邮件的部署不能再让密码账号靠邀请链接入组(社交或 SSO 已验证邮箱的账号除外),改由平台管理员建号或用 Add Member 挂接已有账号。本 PR 还更正了同一版本里 fix(plugin-auth,app-shell)!: while mail is live, accepting an invitation needs a verified address #34666 尚未发布的 changeset(见下方 DELIBERATE CORRECTION),Check Changeset 因此按设计保持红色。回滚即 revert 本 PR 与 docs(adr-0093): a sign-up admitted by its invitation alone is not bound while its address is unverified #34909。
  • 先看:packages/plugins/plugin-auth/src/invitation-accept-verified-email.ts(规则与两个 vendor 钩子);auth-manager-membership-admission.ts 的 settleMembership(未验证的邀请注册不绑定,按创建它的请求判断);packages/verify/src/harness.ts 的 signUp(测试夹具改走运营方通道)。
  • 两分钟验证:pnpm --filter @objectstack/plugin-auth exec vitest run src/invitation-acceptance-verified-address.test.ts,预期 30 个用例全绿。
  • 需要你做的:无,席位落地(ADR 修订 docs(adr-0093): a sign-up admitted by its invitation alone is not bound while its address is unverified #34909 按 Tier H 由你批准,与本 PR 一同落地)。

DELIBERATE CORRECTION

This PR rewrites .changeset/34272-accept-invitation-verified-email.md, the pending release note of #34666, which exists on the merge base. The rule this PR ships made that note's sentences about deployments without live mail, and about listing and declining, false; left as it was, the release would carry two contradictory BREAKING entries for one route. check-empty-changeset stays red on this file by design; it is not restored. The note is reduced to the parts that ship beside this PR's entry and points at that entry, which carries the BREAKING notice and the migration.

Part of the note Before After
Summary line "fix(plugin-auth,app-shell)!: while mail is live, accepting an invitation needs a verified address" "fix(plugin-auth,app-shell): an accept refused for an unverified address answers the vendor's own code, and the Console's accept page takes the person to verify"
Clause-② line "Clause-②: no (narrowing)" "Clause-②: no"
Skills-docs line "…; the rule is stated here and in the self-hosting docs." "…; the rule is stated in the self-hosting docs."
ADR-0087 disposition marker (an HTML-comment line beginning adr-0087: not-required (no-migration-prescription)) present removed: the note no longer declares a breaking change
BREAKING paragraph "BREAKING for a person who accepts an invitation from an account whose address was never verified, on a deployment whose mail transport is live. The rule: while mail is live, accepting an invitation needs a verified address, because an unverified address is not proof of the invited mailbox." "The rule that refuses the accept is stated, with its BREAKING notice and its migration, in this release's entry "accepting, declining and listing an organization invitation need a verified email address on every deployment, and an invitation sign-up joins by accepting once verified". This entry carries only the parts of that change that ship beside it."
What changes, first bullet "POST /api/v1/auth/organization/accept-invitation (@objectstack/plugin-auth), from a session whose address is unverified, while the email service answers isConfigured() === true, now answers 403 EMAIL_VERIFICATION_REQUIRED_BEFORE_ACCEPTING_OR_REJECTING_INVITATION (better-auth's own code and sentence, the ones its accept route answers when its option is on) and writes nothing; the invitation stays pending. It used to answer 200 and write the membership. The vendor's not-found, expiry and recipient refusals still come first, so a session that is not the invitee learns nothing new. The check runs on the vendor's beforeAcceptInvitation hook, on the session user the vendor itself resolved (cookie or bearer token alike), and asks whether mail is live on every request." "POST /api/v1/auth/organization/accept-invitation (@objectstack/plugin-auth) answers a session whose address is unverified with better-auth's own 403 EMAIL_VERIFICATION_REQUIRED_BEFORE_ACCEPTING_OR_REJECTING_INVITATION and its sentence, the answer its accept route gives when its option is on, and writes nothing. The vendor's not-found, expiry and recipient refusals still come first, so a session that is not the invitee learns nothing new. The check runs on the vendor's beforeAcceptInvitation hook, on the session user the vendor itself resolved (cookie or bearer token alike)."
What changes, second bullet (the Console) unchanged unchanged
Who moves paragraph "Who moves. A person in that state verifies their address … so is refused as above and sent to verify." removed; this PR's entry states who moves and what to do
Unchanged paragraph "Unchanged. Every deployment without a live mail transport (no email service, or the log transport), where nothing could verify an address, so acceptance stays open to an unverified address; get-invitation, list-user-invitations and reject-invitation, which write no membership; the one-step door …; and a verified session everywhere. better-auth's requireEmailVerificationOnInvitation stays declared false: it governs reading and declining too, and is read once at boot." removed; this PR's entry states what is unchanged
@objectstack/runtime line unchanged unchanged

What changes

The rule. Accepting, declining and listing an organization invitation need a verified email address, on every deployment, whatever the state of its mail transport. Reading one invitation by its id stays open, so the accept page can show it. A password account verifies through the verification mail; an account a social or SSO provider made counts only when the provider verified the address. The invitation's id, which its accept link and a copied link carry, is no proof of the mailbox, and no setting relaxes the rule.

  • packages/plugins/plugin-auth/src/invitation-accept-verified-email.ts: refuseUnverifiedInvitationAnswer(user, { verificationRequired }) refuses a user whose address is not verified with the vendor's own 403 EMAIL_VERIFICATION_REQUIRED_BEFORE_ACCEPTING_OR_REJECTING_INVITATION (read off the plugin's $ERROR_CODES; the local fallback is pinned equal to it). It reads no mail state.
  • auth-manager-organization-plugin.ts: the rule is asked from better-auth's beforeAcceptInvitation and beforeRejectInvitation, which the vendor fires after its own not-found, expiry and recipient checks and before anything is written, with the session user its own verification check reads (cookie and bearer alike). requireEmailVerificationOnInvitation stays declared false: the vendor's option governs accept, reject and get-invitation together, and get-invitation stays open.
  • list-user-invitations-verification.ts: the host's rebuild of GET /organization/list-user-invitations refuses a session whose address is not verified, 403 EMAIL_VERIFICATION_REQUIRED_FOR_INVITATION, unconditionally, so the inbox carries the rule itself whatever the declaration says. The listing itself stays the vendor's own query.
  • Mail state. No invitation gate reads whether mail is live, so every transport state (live, log transport, no email service, a service whose liveness cannot be read or whose reader throws) gives the same answer.
  • Invitation sign-ups. Under invite_only with membershipPolicy: 'auto', a sign-up admitted by the invitation it presents is not bound to the deployment's organization while its address is unverified (settleMembership, auth-manager-membership-admission.ts). The admission gate records the admission on the request that creates the account, and both settle seams of that creation read it there; no other creation of the same address, in any other request, can read it. It joins by accepting the invitation once verified, with the invitation's role, or through a platform administrator. Chosen as a policy-skip at creation rather than a bind at verification: the invitation is the instrument of admission under this posture and its acceptance already writes the membership; a role-less bind at verification would let a verified person who never accepted, or who declined, join by a route no issuer chose; and ADR-0093 D7 decides membership at creation, where a verification-time bind would add a decision point on every path that can write email_verified. A user row that cannot be read while that request admitted an invitation sign-up binds nothing. The first account, accounts an administrator creates, accounts a boot command provisions and a sign-up the invitation mail's proof verifies bind as before.
  • Console (@object-ui/app-shell): the accept page answers a refused decline with the verification-mail screen for the account's address, as it answers a refused accept; and a sign-up from an invitation link (useInvitationSignUpJoin) whose automatic accept is refused for an unverified address goes straight to that screen, whose link returns to the accept page, instead of passing through the accept page first. The Console has no caller of the listing route.
  • Fixtures. Fixture members enter through the operator door instead of the invitation sign-up lane: operatorProvisioningField in plugin-auth's audience-gate-test-support.ts (three suites), @objectstack/verify's signUp (which falls back to the invitation lane only when the auth service offers no operator door), and four @objectstack/runtime pin suites. Fixtures that answer an invitation mark the invitee verified first.
  • Docs. content/docs/deployment/self-hosting.mdx states the rule and its consequence: a deployment without a live mail transport cannot onboard a password account by invitation link; an invitee whose social or SSO provider verifies the address can still accept a copied link there; otherwise a platform administrator creates the account, or attaches an existing one with Add Member, which is open to platform administrators only and attaches existing accounts only. tenancy-modes.mdx, environment-variables.mdx, permissions/authentication.mdx and permissions/sso.mdx state the sign-up binding rule and that admission is not acceptance. docs/qa/platform-checklist/RUNNER.md's persona door 1 follows the rule. ui/.../invitationSignUpJoin.ts's header describes the flow. scripts/check-route-envelope.mjs: one comment sentence.
  • Changesets. .changeset/invitation-acceptance-verified-address.md: @objectstack/plugin-auth, @objectstack/verify, @object-ui/app-shell patch; BREAKING; adr-0087: not-required (no-migration-prescription). @object-ui/console is not listed: no file under ui/apps/console changes, and the @object-ui/* and @objectstack/* packages version as one fixed group. .changeset/34272-accept-invitation-verified-email.md: the DELIBERATE CORRECTION above.

No spec, schema, stored row, route path, error code or exported signature of a published entry changes.

Tests

  • src/invitation-acceptance-verified-address.test.ts (real AuthManager over @objectstack/driver-sql on sqlite :memory:), 30 cases:
    • an unverified password account and an unverified provider-asserted social account are refused at accept, decline and the listing, the one-step door asks them to verify, and get-invitation answers; verified controls accept and decline (password through the real verification mail round trip; social with a provider-verified address); the one-step door accepts with the mail's proof and, for a signed-in account, once the address is verified;
    • the mail-transport matrix: live, log transport, no email service, a service with no liveness reader, a service whose reader throws, each for an unverified password account, an unverified social account and a verified control;
    • the binding cases: an unverified invitation sign-up holds no membership and its session no active organization; verifying binds nothing by itself and accepting writes the invited role; the same with no mail transport; controls: a proof-verified sign-up invited into another organization holds the default-organization membership from creation and the invited role from acceptance; an unrelated address an operator provisions while an invitation sign-up is in flight is bound; the same address created again through the operator door after an invitation sign-up of it is bound; the first account is bound.
  • src/invitation-accept-verified-email.test.ts: the vendor's own code; accept and decline refused for cookie and bearer sessions with nothing written; get-invitation open; the vendor's recipient refusal still answers first at both doors; verified controls; the one-step proof door; the function's pins.
  • src/list-user-invitations-verification.test.ts: the listing refuses an unverified session while get-invitation answers; scope pins on a verified session; the rebuild's contract and the vendor pin.
  • UI: acceptInvitationVerifiedEmail-34272.test.tsx (a refused decline goes to the verification-mail screen, beside the accept case and its control); invitationSignUpJoin-30125.test.tsx (an unverified invitation sign-up goes straight to the verification-mail screen with its address and the accept page as the return).

Acceptance notes

Verification

Head note: the PR head is bf3bf857d6, a sync-only merge of main made by the seat through the relay on top of 5147ad6a3a. It has the same tree as a clean merge of the two, and the same net patch-id. The evidence below was taken at 5147ad6a3a and carries.

Final head 5147ad6a3a, the merge of origin/main after the patch commits.

CI at the final head

Every required context succeeded: Lint & Repo Gates, TypeScript Type Check (Type Check · workspace included), Test Core (all ten shards), Build Core, Governed Surface Queue Guard, Lint UI, Type Check UI, Test UI, Build & E2E UI, Live E2E UI and Dogfood Regression Gate. Check Changeset is red by design: check-empty-changeset refuses the rewrite of .changeset/34272-accept-invitation-verified-email.md, the DELIBERATE CORRECTION declared above.

Derived gates: 134 of 134 run, every exit code recorded

node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack derived 134 families at 5147ad6a3a. All 134 ran. 131 exited 0 on the first run. check:dual-build-cjs-loads answered exit 3 (prerequisite: some packages' dist not built) and exit 0 once built. pnpm --dir ui exec vitest run scripts/ was killed for memory while other runs shared the box, and exited 0 run alone (Test Files 171 passed, 2 skipped). check-empty-changeset exits 1: the DELIBERATE CORRECTION refusal above, by design. --ran reconciliation: 134 derived, 134 run, 0 NOT-MEASURED.

Package suites and type checks at `5147ad6a3a`
  • @objectstack/plugin-auth: Test Files 285 passed (285), Tests 5969 passed, 10 skipped.
  • @objectstack/runtime: Test Files 613 passed (613), Tests 11388 passed, 23 skipped (run at 79a6877ea1, the four fixture changes; after it, 7a9d7e5068 only removes an unused constant those suites never read, and the CI Test Core shards at 5147ad6a3a pass).
  • @objectstack/verify: Test Files 52 passed (52), Tests 445 passed.
  • @objectstack/organizations: Test Files 20 passed (20), Tests 266 passed.
  • ui: vitest run over packages/app-shell/src/console/organizations/, packages/app-shell/src/console/auth/ and apps/console/src/pages/auth/: Test Files 69 passed (69), Tests 630 passed.
  • Workspace type check, CI's command for the touched packages and every package that depends on them (turbo run typecheck over plugin-auth, runtime, verify, organizations and their dependents, plus dogfood), after turbo run build --filter='./packages/*' --filter='./examples/*^...': Tasks 75 successful of 75, exit 0.
Ablations: red, then restored
  • The three seams together (the accept and decline hook's verified check, the listing rebuild's refusal, the sign-up binding rule), each anchor hit once by scripts/ablation-replace.mjs: the three rule files ran 26 of 52 cases red. Restored from HEAD (each blob hash equals HEAD's, git diff HEAD empty): 52 of 52 green.
  • The request scope of the sign-up admission, replaced by one admission record shared by every request: 1 of 30 cases red in invitation-acceptance-verified-address.test.ts, exactly the case for the same address created again through the operator door. Restored from HEAD (blob hash equal, git diff HEAD empty).
Dogfood battery

Not re-run in this round: no door-level assertion moved. The one dogfood fixture change of the first round stands, and that round's battery passed at 48e427708a (Test Files 479 passed, 3 skipped; Tests 4067 passed, 68 skipped). CI's Dogfood Regression Gate succeeded at 5147ad6a3a.


Generated by Claude Code

…ified email address

Claude-Session: https://claude.ai/code/session_01QSeKYn5CmmdShCJifm6WYj
Co-authored-by: Claude <noreply@anthropic.com>
…rified email address at every door

Claude-Session: https://claude.ai/code/session_01QSeKYn5CmmdShCJifm6WYj
Co-authored-by: Claude <noreply@anthropic.com>
…ing need a verified address; the Console answers the refusal with its verify-email state

Claude-Session: https://claude.ai/code/session_01QSeKYn5CmmdShCJifm6WYj
Co-authored-by: Claude <noreply@anthropic.com>
# Conflicts:
#	content/docs/deployment/self-hosting.mdx
#	packages/plugins/plugin-auth/src/auth-manager-organization-plugin.ts
#	ui/packages/app-shell/src/console/organizations/manage/AcceptInvitationPage.tsx
…d a verified address on every deployment; an invitation sign-up joins by accepting once verified

Claude-Session: https://claude.ai/code/session_01QSeKYn5CmmdShCJifm6WYj
Co-authored-by: Claude <noreply@anthropic.com>
…ocs and changeset state the verified-address rule

Claude-Session: https://claude.ai/code/session_01QSeKYn5CmmdShCJifm6WYj
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/xl documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 17, 2026
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 2 package(s): @objectstack/plugin-auth, @objectstack/verify, touching 40 documentable anchor(s). ⚠️ 1 changed file(s) yielded no anchor (packages/plugins/plugin-auth/src/presented-invitation.ts), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

5 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/data-modeling/field-type-decision-tree.mdx (via email_verified (literal, a string literal in invitationSignUpAwaitsVerification))
  • content/docs/kernel/contracts/auth-service.mdx (via AuthManager (symbol, a top-level class))
  • content/docs/kernel/services-checklist.mdx (via AuthManager (symbol, a top-level class))
  • content/docs/permissions/authentication.mdx (via AuthManager (symbol, a top-level class), email_verified (literal, a string literal in invitationSignUpAwaitsVerification))
  • content/docs/permissions/sso.mdx (via email_verified (literal, a string literal in invitationSignUpAwaitsVerification))

⛔ 3 release-owned page(s) also name something this change touched. These are read-only:

  • content/docs/releases/v18/18-2.mdx (via AuthManager (symbol, a top-level class))
  • content/docs/releases/v18/18-3.mdx (via AuthManager (symbol, a top-level class))
  • content/docs/releases/v18/18-4.mdx (via AuthManager (symbol, a top-level class))

content/docs/releases/ is RELEASE-OWNED (AGENTS.md "Documentation Guardrails"): release
notes are written centrally at release time, and a code PR that edits them is the exact PR
that guardrail exists to stop. They are still audited — read-only. If one of them is actually
wrong, file an issue or open a dedicated docs-only PR; do not edit it here.

What this run could not see
  • 1 changed file(s) yielded no anchor (packages/plugins/plugin-auth/src/presented-invitation.ts) — pages documenting those are invisible to this run
  • 1 anchor(s) matched too much of the corpus to be a work list: sys_user (literal, 56 pages)
  • the SDK route bridge reached 65 of 247 client-bound route-ledger rows — the other 182 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 182: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 123 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 26 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json d576509c80575197b3218aeb1f55884e5ed06ea6 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from f27946cc9e6f5de5c86e8722fbb7b176c221e8ed — the merge of head bf3bf857d6d24772ef81266b807544ac61df771f into base d576509c80575197b3218aeb1f55884e5ed06ea6, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin f27946cc9e6f5de5c86e8722fbb7b176c221e8ed && git checkout f27946cc9e6f5de5c86e8722fbb7b176c221e8ed
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin d576509c80575197b3218aeb1f55884e5ed06ea6 bf3bf857d6d24772ef81266b807544ac61df771f && git checkout -B drift-repro d576509c80575197b3218aeb1f55884e5ed06ea6 && git merge --no-ff bf3bf857d6d24772ef81266b807544ac61df771f

node scripts/docs-audit/affected-docs.mjs --json d576509c80575197b3218aeb1f55884e5ed06ea6

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs d576509c80575197b3218aeb1f55884e5ed06ea6 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

…quest that creates it, so no other creation of the address reads it

Claude-Session: https://claude.ai/code/session_01QSeKYn5CmmdShCJifm6WYj
Co-authored-by: Claude <noreply@anthropic.com>
…goes straight to the verification mail; release notes state one rule

Claude-Session: https://claude.ai/code/session_01QSeKYn5CmmdShCJifm6WYj
Co-authored-by: Claude <noreply@anthropic.com>
…the sign-up binding rule

Claude-Session: https://claude.ai/code/session_01QSeKYn5CmmdShCJifm6WYj
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

security#2 · os-justin · session_01QSeKYn5CmmdShCJifm6WYj

The seat adopts the delta record below. It was rendered on this head, at the contract-review tier, by the same isolated reviewer that recorded the earlier FAIL. The seat holds that FAIL record privately; mechanism detail stays with the security seat. This record is also the seat's confirmation of the DELIBERATE CORRECTION, judged sentence by sentence below.

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: bf3bf857d6d24772ef81266b807544ac61df771f
Local-runs: probe — one throwaway worktree at bf3bf857d6 (since removed; the shared clone was untouched) to verify the sync merge, the rule files and the ablations; what it ran:

  • the sync-only check (merge-tree equals the head's tree; same net patch-id at 5147ad6a3a and bf3bf857d6);
  • four rule files, 65 passed;
  • request-scope ablation: 1 of 30 red, exactly control (b);
  • binding-rule ablation: 5 of 30 red;
  • check-empty-changeset refuses only the corrected note;
  • check-adr-0087-registration and check-changeset-no-major exit 0.

The full suites, type check, derived gates, dogfood and CI were not run by the reviewer.

Scope: delta 48e427708a..5147ad6a3a over the PR's net files, the sync merge to bf3bf857d6, and the replacement PR body.

① Derived judgments

Earlier findings

  • M1: closed. See the DELIBERATE CORRECTION table below.
  • S1: closed. The admission is held per creating request (auth-manager.ts:3431-3454, auth-manager-membership-admission.ts:129-148, auth-manager-database-hooks.ts:281, 495-515). No other creation of the same address reads it.
  • S3: closed. Controls (a) and (b) at invitation-acceptance-verified-address.test.ts:465-501.
  • S4: closed. self-hosting.mdx:780-788 and the changeset carry the provider-verified exception.
  • N1: closed. invitationSignUpJoin.ts:104-113 routes straight to the verification prompt; pinned.
  • N3: closed. The proof control now distinguishes a bind at creation plus acceptance.
  • N4: closed.
  • S2: deferred to follow-up card Invite outcome messages: the no-mail hand-over matches the verified-address rule (follow-up to #34883) #34889. Accepted.
  • N2: outside the diff; it stays a nit.

DELIBERATE CORRECTION: .changeset/34272-accept-invitation-verified-email.md

The PR body's table matches the diff row for row.

Part Before, at this head After, at this head
Summary line False: "while mail is live" is no longer a condition. True
Clause-② no (narrowing) duplicated the new entry's declaration. no, true for what the note still states
Skills-docs "stated here" would be false. True: the rule is in the self-hosting docs
ADR-0087 marker Tied to a breaking declaration the note no longer makes. Removed. The new entry carries the disposition
BREAKING paragraph False: it limited the rule to live mail. True: it points at the new entry, which is pending for the same release
What changes, bullet 1 False in two clauses. True against auth-manager-organization-plugin.ts:439-445 and the vendor route
What changes, bullet 2 True Unchanged
Who moves Framed by the live-mail condition. Removed. The new entry covers it
Unchanged False Removed. The new entry's "Unchanged" is true
@objectstack/runtime line True Unchanged

Every sentence the note now carries is true at bf3bf857d6. check-empty-changeset is red on this file only, by design.

Also judged

  • The four runtime pin suites change only their member-minting helper, which now goes through the operator door. No assertion moves.
  • Docs: environment-variables.mdx:100, tenancy-modes.mdx:246-249, authentication.mdx:125-128, 1213-1214 and sso.mdx:751-754 are accurate against the code.
  • New over-refusal: none found.

Findings

  • N5: the body named 5147ad6a3a as the final head. Fixed on this head: the body now carries the sync-merge note.
  • N6: the request-scoped record depends on the vendor handing the same context object to the admission gate and both settle seams. The binding cases pin this today: 5 go red if the rule is disabled. A one-line comment naming them is suggested.

② Semver level

Unchanged and correct:

  • patch on @objectstack/plugin-auth, @objectstack/verify and @object-ui/app-shell;
  • Metadata-protocol: none;
  • Clause-②: no (narrowing), with the BREAKING banner, ! and the ADR-0087 not-required (no-migration-prescription) marker on the new entry.

The corrected note is non-breaking at patch with plain Clause-②: no, so the release declares the narrowing once.

③ Boundary flags

④ Design judgment

The request-scoped record is the right shape. It mirrors usersCreatedInRequest and has no lifetime to tune. Policy-skip over bind-at-verification holds, as judged before. Reducing the superseded note, rather than deleting it, keeps its surviving attributions.

Implemented-by: claude/sec2-q2gv
Reviewed-by: session_01QSeKYn5CmmdShCJifm6WYj

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

security#2 · os-justin · session_01QSeKYn5CmmdShCJifm6WYj

席位核对

ACCEPT · head bf3bf857d6d24772ef81266b807544ac61df771f · 2026-11-17T17:17Z

  • Shape: not governed (check-governed-merges --pr 34883: 0 of 41 path hit the register). Clause-②: no (narrowing), Metadata-protocol: none. Patch for @objectstack/plugin-auth, @objectstack/verify and @object-ui/app-shell, with the BREAKING banner and one ADR-0087 marker.
  • Review: contract tier, by an isolated reviewer.
  • DELIBERATE CORRECTION: .changeset/34272-accept-invitation-verified-email.md. The same-head contract-review PASS (6955392758) confirms it sentence by sentence; that is the seat's confirmation by its own record.
  • Check Changeset is red by design. All three conditions to queue with it red hold:
    • (1) scripts/check-empty-changeset.mjs says the gate stays red for a deliberate correction, whichever record confirms it;
    • (2) pr-automation.yml runs on pull_request only, not merge_group;
    • (3) this comment records the gate and its cause.
  • Head move: 5147ad6a3a → bf3bf857d6 is a sync-only merge of main through the relay, verified by merge-tree and patch-id. K = 0 at the merge.
  • Provenance: dispatched and L1-read by this seat. The draft PR was opened through the relay by the order. The body was replaced through the relay.
  • Dev evidence:
    • plugin-auth 5969, runtime 11388, verify 445, organizations 266, UI 630;
    • workspace type check 75/75;
    • 134 derived gates, the only red being the correction gate, by design;
    • the dogfood battery at the first round: 4067 passed.
  • Check-runs at this head, at time of writing: no failure other than Check Changeset. The core and UI test shards are still running, and the merge queue re-runs the required set.
  • Companion: ADR amendment docs(adr-0093): a sign-up admitted by its invitation alone is not bound while its address is unverified #34909 (Tier H, human merge) lands after this PR.
  • Landing: ready, then auto-merge into the merge queue. The advisory closes on merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/xl tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant